import axios from '@/common/js/request.js';

export default {
	/**
	 * 查询出库单货品执行列表
	 */
	list(params) {
		return axios.post(global.$host, 'api/v1/outBillCargoExecute/selectOutBillCargoExecuteList', params);
	},
	/**
	 * 出库单详情
	 */
	detail(id) {
		return axios.get(global.$host, `api/v1/outBill/outBillDetail/${id}`);
	},
	/**
	 * 查询出库货品明细
	 */
	outBillCargoList(params) {
		return axios.post(global.$host, 'api/v1/outBillCargoExecute/outBillCargoList', params);
	},
	/**
	 * 拣货
	 */
	distribution(params) {
		return axios.post(global.$host, 'api/v1/outBillCargoExecute/pickingDeliver/1', params);
	},
	/**
	 * 发货
	 */
	deliver(params) {
		return axios.post(global.$host, 'api/v1/outBillCargoExecute/pickingDeliver/2', params);
	},
	/**
	 * 查询拣货发货列表
	 */
	pickingDeliverList(params) {
		return axios.post(global.$host, 'api/v1/outBillCargoExecute/distributionPickingDeliver', params, {
			hideMsg: true
		});
	}
};
